var app_page = function() {
	Ti.UI.setBackgroundColor('#fff');
	var base_folder_name = Ti.Filesystem.resourcesDirectory + 'aushelper/';
	Ti.App.Properties.setString('base_folder_name', base_folder_name);
	Titanium.include(Ti.App.Properties.getString('base_folder_name') + 'foxbuddy.js');
	Titanium.App.selectWindowObject = null;

	var tabGroup = Titanium.UI.createTabGroup({
	});

	//my jobs
	var fuel_query_main_win = Titanium.UI.createWindow({
		url : base_folder_name + 'fuel_query/index.js',
		animate : true
	});

	var tab1 = Titanium.UI.createTab({
		title : 'Fuel Query',
		window : fuel_query_main_win
	});

	var delivery_query_main_win = Titanium.UI.createWindow({
		url : base_folder_name + 'delivery_query/index.js',
		animate : true
	});
	var tab2 = Titanium.UI.createTab({
		title : 'Delivery Query',
		window : delivery_query_main_win
	});
	tabGroup.addTab(tab1);
	tabGroup.addTab(tab2);
	//tabGroup.setActive(0);
	tabGroup.open();


	//for iphone and ipad
	var modal_message_window = Ti.UI.createWindow({
		backgroundColor : '#999',
		fullscreen : false,
		opacity : 0.8
	});
	var sub_modal_message_window = Titanium.UI.createView({
		backgroundColor : '#113D69',
		borderWidth : 4,
		borderColor : '#999',
		height : 120,
		width : 280,
		borderRadius : 8
	});
	modal_message_window.add(sub_modal_message_window);

	var actInd = Ti.UI.createActivityIndicator({
		font : {
			fontSize : 20,
			fontWeight : 'bold'
		},
		color : '#fff',
		message : 'Loading Data ...',
		width : 'auto',
		height : 'auto'
	});
	sub_modal_message_window.add(actInd);
	actInd.show();
	modal_message_window.open();
	setTimeout(function() {
		modal_message_window.close();
	}, 1000);
}();
